construction of arguments for tracing is outlined from
straightline code paths.
Signed-off-by: Keir Fraser <keir@xensource.com>
/* a flag recording whether initialization has been done */
/* or more properly, if the tbuf subsystem is enabled right now */
-int tb_init_done = 0;
+int tb_init_done;
/* which CPUs tracing is enabled on */
static unsigned long tb_cpu_mask = (~0UL);
#ifndef __XEN_TRACE_H__
#define __XEN_TRACE_H__
-#include <asm/page.h>
-#include <xen/types.h>
-#include <xen/sched.h>
+#include <xen/config.h>
#include <asm/atomic.h>
-#include <asm/current.h>
-#include <asm/msr.h>
#include <public/dom0_ops.h>
#include <public/trace.h>
/* Avoids troubling the caller with casting their arguments to a trace macro */
#define trace_do_casts(e,d1,d2,d3,d4,d5) \
do { \
- if ( tb_init_done ) \
+ if ( unlikely(tb_init_done) ) \
trace(e, \
(unsigned long)d1, \
(unsigned long)d2, \